<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>影院列表-郫县电影</title>
<link rel="short icon"  href="/photo/head.png"/>
<style type="text/css">
	.left{    
		    width: 200px;
		    height: 750px;
		    float: left; 
		    background-color: #f4f3f4;
		    text-align: center;
		    border-right: 1px solid #d8d8d8;
	}
	.left h1 {
	    margin-top: 40px;
	    margin-bottom: 30px;
	    font-size: 22px;
	    color: #222;
	    font-weight: 400;
	}
	.right{
		position: absolute;
		left: 225px;
		top: 20px;
		border: 1px solid #d8d8d8;
	}
	body{
		border-top: 2px solid #d8d8d8;
		border-bottom: 2px solid #d8d8d8;
	}
	.left a {
	    display: block;
	    font-weight: 400;
	    color: #333;
	    height: 40px;
	    width: 202px;
	    margin-left: -1px;
	    line-height: 40px;
	    font-size: 18px;
	    text-decoration: none;
	}
	.left .active{
		color: #fff;
		background-color: #ed3931;
	}	
	.right>*{
		margin-left: 10px;
		margin-right: 10px;
	}
	table{
		border-spacing: 4px 10px;	
	}
	form .input{
		cursor: pointer;
		border-radius: 5px;
		width: 50px;
	    height: 25px;
	    font-size: 16px;
	    line-height: 25px;
		border: none;
		color: #fff;
		background-color: #ed3931;
	}
	.left .updateMovie{
		color: #9b9191;
	} 
</style>
</head>
<body>
	<div class="left">
		<h1>电影排片</h1>
		<a href="/cinemaFindAll">基本信息</a>
		<a class="active">排片信息</a>
		<a href="/cinemadelete">删除排片</a>
		<a href="/cinemainsert">添加排片</a>
		<a class="updateMovie">修改排片</a>
	</div>
	<div class="right">
		<div style="height: 10px"></div>	
		<form action="/cinemafind/hallname" method="get">
			<input type="text" name="hallName" />
			<input class="input" type="submit" value="搜索" />
		</form>
		<table>
			<thead>
				<tr>
					<th>电影开始时间</th>
					<th>电影名称</th>
					<th>影院</th>
					<th>影厅</th>
					<th>结束时间</th>
					<th>电影语言</th>
					<th>电影版本</th>
					<th>电影价格</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${requestScope.cinemas }" var="a">
					
					<tr>	
					
						<td>${a.filmBeginTimeString } &nbsp; ${a.beginHour }:${a.beginMin} </td>
						<td>${a.film.filmName }</td>
						<td>${a.cinemaName.cinemaName }</td>
						<td>${a.hall.hallName}</td>
						<td>${a.filmEndTimeString } &nbsp; ${a.endHour }:${a.endMin }</td>
						<td>${a.filmLanguage }</td>
						<td>${a.filmVersion }</td>
						<td>${a.price }</td>
						
						<td>
							<form action="/cinemaupdate" method="get">
								<input type="hidden" name="scheduleId" value="${a.scheduleId}" />
								<input class="input" type="submit" value="更改" />
							</form>
						</td>
					</tr>
					
				</c:forEach>

			</tbody>
		</table>
	</div>
</body>
</html>